<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/core/adminMeta.jsp"%>
		
	</head>
	
	<body>
		<div id="scrollContent">
		
			<div class="box2" panelTitle="留言查看" roller="true">
	

					
					<fieldset> 
					
						<legend>留言内容</legend> 
						
						<table class="tableStyle" transMode="true" footer="normal">
							<tr>
								<td width="10%">标题：</td>
								<td width="40%">${message.title}</td>
								
								<td width="10%">状态：</td>
								<td width="40%">
									<c:if test="${message.type=='10'}"><font color="red">未处理</font></c:if>
									<c:if test="${message.type=='20'}"><font color="blue">已处理</font></c:if>
								</td>
							</tr>
							<tr>
								<td>内容：</td>
								<td colspan="3">
									${message.content}
									<c:if test="${message.filePath!=null}">
										<br/>
										<a href="<%=basePath%>temp/${message.fileName}" target="_blank">
											<img src='<%=basePath%>temp/${message.fileName}' />
										</a>
									</c:if>
								</td>
							</tr>
							
						</table>
					</fieldset>
					
					<fieldset> 
					
						<legend>留言回复过程</legend> 
						
						<table class="tableStyle" formMode="true">
<c:forEach items="${list}" var="o">
							<tr>
								<td width="10%">${o.operDate}</td>
								<td width="90%">
									<div style="text-align:left;">
										${o.content}
										<c:if test="${o.filePath!=null}">
											<br/>
											<a href="<%=basePath%>temp/${o.fileName}" target="_blank">
												<img src='<%=basePath%>temp/${o.fileName}' style="width: 150px;height: 150px;"/>
											</a>
										</c:if>
									</div>						
								</td>
							</tr>
</c:forEach>							
						</table>
					</fieldset>

<form id="commitForm" action="admin/info/messageShowAdd.shtml" method="post" enctype="multipart/form-data">
	 <jodd:form scopes="request" beans="message">
	<input type="hidden"  id="id" name="id"  />
					<fieldset> 
					
						<legend>留言再次回复</legend> 
						
						<table class="tableStyle" transMode="true" footer="normal">
							<tr>
								<td>内容：</td>
								<td>
									<textarea  id="adminContent" name="adminContent" style="width:70%;height:300px;" class="rich"></textarea>
								</td>
							</tr>
							<tr>
								<td>图片地址：</td>
								<td>
								<input type="file" id="file" name="file" />
								</td>
							</tr>
							
							<tr>
								<td>安全密码：</td>
								<td>
								<input type="password"  id="myTwoPassword" name="myTwoPassword"/>
								</td>
							</tr>
						</table>
					</fieldset>
					
					
					
					<div class="padding_top10">
						<table class="tableStyle" transMode="true">
							<tr>
								<td>
									<div style="color: red;text-align:center;">
										${retMsg}
									</div>
								</td>
							</tr>
						</table>
						<table class="tableStyle" transMode="true">
							<tr>
								<td>
									<input type="submit" value=" 提 交 " style="width: 80px;height: 30px;font-size: 17px;font-weight: bold;"/>
									<input type="reset" value=" 重 置 " style="width: 80px;height: 30px;font-size: 17px;font-weight: bold;"/>
								</td>
							</tr>
						</table>
					</div> 
			</jodd:form>		 
				</form>
				
				
			</div>
		</div>
	<!--代码高亮end-->
	</body>
</html>